﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cachoutlist.aspx.cs" Inherits="shop_OrderList_cachoutlist" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/Banner.ascx" TagPrefix="top" TagName="banner" %>
<%@ Register Src="~/header.ascx" TagName="banner" TagPrefix="uc1" %>
<%@ Register Src="~/Foot.ascx" TagPrefix="foot" TagName="foot" %>
<%@ Register Src="~/shop/Left.ascx" TagName="LeftBanner" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>提现记录-<%= SectionProxyData.GetSetValue(3)%></title>

    <link rel="stylesheet" type="text/css" href="/user/css/user_center.css" />
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/user/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/user/css/userinfo.css" rel="stylesheet" />


    <script src="../JavaScript/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="../JavaScript/ShowDivDialog.js" type="text/javascript"></script>
    <script src="DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">



        $(document).ready(function () {
            initshopnav(6);
        })

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <top:banner ID="Banner1" runat="server" />
        <uc1:banner ID="Banner2" runat="server" />
        <div class="shop_containner clearfix">
            <uc2:LeftBanner runat="server" ID="Left" />
            <div class="shop_main">
                <div class="main-content">

                    <div class="shop_menu">


                        <ul>
                            <li id="today"><a href="settlelist.aspx">订单结算报表</a></li>
                            <li id="all"><a href="settlecount.aspx">结算帐号</a></li>
                            <li class="cur"><a href="cachoutlist.aspx">提现记录</a></li>
                        </ul>

                    </div>
                    <div class="listorder" style="width: 795px;">
                        <ul>
                           
                            <li>订单开始时间：
                                <input type="text" name="textfield2" id="starttime" size="10" class="j_text" runat="server" onfocus="WdatePicker({readOnly:true})" />
                                至
                                <input type="text" name="textfield3" id="enttime" runat="server" class="j_text" size="10" onfocus="WdatePicker({readOnly:true})" />
                                <asp:DropDownList runat="server" ID="ddlstate" class="j_select">
                                    <asp:ListItem Text="状态" Value="-1"></asp:ListItem>
                                    <asp:ListItem Text="未处理" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="已打款" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="拒绝" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="商家取消" Value="3"></asp:ListItem>
                                </asp:DropDownList>
                            </li>
                            <li>
                                <asp:Button ID="btSearch" runat="server" Text="查询" CssClass="subBtn" OnClick="btSearch_Click" />
                            </li>
                        </ul>
                    </div>
                    <div class="clear"></div>


                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

                        <ContentTemplate>
                            <div class="usermima">
                                 <div class=" mynotice" style="display: block; margin-bottom: 10px; padding-left: 5px;">提示：提现申请只有要未处理可在取消。</div>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listorder_table"
                                    style="border: 1px solid #ccc;">
                                    <asp:Repeater ID="rptOrderList" runat="server" OnItemCommand="rptOrderList_ItemCommand">
                                        <HeaderTemplate>
                                            <tr>
                                                <th>操作时间
                                                </th>
                                                <th>提现金额
                                                </th>
                                                <th>订单时间范围
                                                </th>
                                                <th>状态
                                                </th>
                                                <th>备注
                                                </th>

                                                <th style="border-right: 0;">操作
                                                </th>
                                            </tr>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%# Convert.ToDateTime(Eval("addtime")).ToShortDateString()%>
                                                </td>
                                                <td>
                                                    <%# Eval("wantmoney")%>
                                                </td>
                                                <td>
                                                    <%# Convert.ToDateTime(Eval("starttime")).ToShortDateString()%>~ <%# Convert.ToDateTime(Eval("endtime")).ToShortDateString()%>
                                                </td>

                                                <td>
                                                    <%# Hangjing.WebCommon.WebHelper.TurnCashOutState(Eval("state")) %>
                                                </td>

                                                <td>
                                                    <%# Eval("remark")%>
                                                </td>

                                                <td>
                                                    <div style="<%#Convert.ToInt32(Eval("state")) == 0 ? "": "display:none"%>">
                                                        <asp:Button  runat="server" ID="tbcancel" Text="取消" CssClass="subBtn" CommandName="cancel" CommandArgument='<%# Eval("cid")%>' />
                                                    </div>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <tr>
                                            </tr>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </table>
                            </div>
                            <div id="noRecord" runat="server" class="no_infor">
                                暂无记录！
                            </div>
                            <div class="pages">
                                <webdiyer:AspNetPager CssClass="anpager" ID="AspNetPager1" runat="server" Width="100%"
                                    CustomInfoHTML="共有记录 <font>%RecordCount%</font> 条 当前为 <font>%CurrentPageIndex%</font>/<font>%PageCount%</font> 页"
                                    HorizontalAlign="Right" ShowCustomInfoSection="Left" CustomInfoTextAlign="Right"
                                    CustomInfoSectionWidth="28%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox"
                                    TextBeforePageIndexBox="转到 " OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxClass="flattext"
                                    ShowPageIndex="True" PageSize="10" SubmitButtonClass="flatbutton" SubmitButtonText=" GO "
                                    TextAfterPageIndexBox=" 页 " Wrap="False" FirstPageText="首页" LastPageText="尾页"
                                    NextPageText="下一页" PrevPageText="上一页">
                                </webdiyer:AspNetPager>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
        <foot:foot runat="server" ID="foot" />
    </form>
</body>
</html>
